#include<math.h>
#include<complex.h>

int f(float h, float x) {
	float a = 0.0;
	float b = 1.0;
	int k = 1;

	do {
		a = a+b;
		b = -h*x*b/k;
		k = k+1;
	} while(fabsf(b) > 1e-10);

	return a;
}
